
<div class="ev-formulario">
    <div class="ev-title-page">
        <h1>Entrega</h1>
    </div>
    <form action="<?php echo $this->baseUrl(); ?>/contrato/proposta/gravar-entrega" method="post" name="formulario" id="formulario">
        <input type="hidden" name="id_entrega" id="id_entrega" value="<?php echo $this->row->id_entrega ?>" />
        <input type="hidden" name="fk_proposta" id="fk_proposta" value="<?php echo $this->row->fk_proposta ?>" />
        <fieldset>
            <div id="div-esquerda">
                <div class="ev-campo">
                    <label for="fk_proposta"><?php echo $this->translate( "fk_proposta"); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
                    <?php echo $this->row->fk_proposta; ?>&nbsp;
                </div>

                <div class="ev-campo">
                    <label for="fk_entrega_pai"><?php echo $this->translate( "fk_entrega_pai"); ?>: </label>
                    <?php echo $this->formSelect( "fk_entrega_pai", $this->row->fk_entrega_pai, array( "id" => "fk_entrega_pai", "title" => $this->translate("fk_entrega_pai")), $this->aReferencias["fk_entrega_pai"] ); ?>
                </div>

                <div class="ev-campo">
                    <label for="st_codigo"><?php echo $this->translate( "st_codigo"); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
                    <input class="text ui-widget-content ui-corner-all required" type="text" name="st_codigo" id="st_codigo" value="<?php echo $this->row->st_codigo; ?>" title="<?php echo $this->translate( "st_codigo"); ?>"  maxlength="45" />
                </div>

                <div class="ev-campo">
                    <label for="st_nome"><?php echo $this->translate( "st_nome"); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
                    <input class="text ui-widget-content ui-corner-all required" type="text" name="st_nome" id="st_nome" value="<?php echo $this->row->st_nome; ?>" title="<?php echo $this->translate( "st_nome"); ?>"  maxlength="150" />
                </div>
            </div>

            <div id="div-direita">
                <fieldset>
                    <legend>Cálculos</legend>
                    <div class="ev-campo">
                        <label for="qt_horas"><?php echo $this->translate( "qt_horas"); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
                        <input class="text ui-widget-content ui-corner-all" readonly="readonly" disabled="disabled" type="text" name="qt_horas" id="qt_horas" value="<?php echo $this->row->qt_horas; ?>" title="<?php echo $this->translate( "qt_horas"); ?>"   />
                    </div>

                    <div class="ev-campo">
                        <label for="qt_dias"><?php echo $this->translate( "qt_dias"); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
                        <input class="text ui-widget-content ui-corner-all" readonly="readonly" disabled="disabled" type="text" name="qt_dias" id="qt_dias" value="<?php echo $this->row->qt_dias; ?>" title="<?php echo $this->translate( "qt_dias"); ?>"   />
                    </div>

                    <div class="ev-campo">
                        <label for="nr_valor"><?php echo $this->translate( "nr_valor"); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
                        <input class="text ui-widget-content ui-corner-all" readonly="readonly" disabled="disabled" type="text" name="nr_valor" id="nr_valor" value="<?php echo $this->row->nr_valor; ?>" title="<?php echo $this->translate( "nr_valor"); ?>"   />
                    </div>
                </fieldset>
            </div>
        </fieldset>
        <fieldset>
            <legend>Tipos de Tarefa</legend>
            <?php echo $this->formMultiCheckbox('aTiposRelacionado[]', $this->aTiposRelacionado, array('class' => 'tipos-relacionado'), $this->aTarefasTipo); ?>
        </fieldset>
        <div class="botoesAcao">
            <button type="submit" name="botao-salvar" id="botao-salvar">Salvar</button>
            <button type="button" name="botao-cancelar" id="botao-cancelar" action="<?php echo $this->baseUrl() ?>//con-entrega">Cancelar</button>
        </div>
    </form>
</div>
<script type="text/javascript">
    $().ready(function() {
        $("form").validate({ignoreTitle: true});
    });
</script>